﻿using System.Collections.Generic;
using System.Linq;
using Creventive.Wpf.ShellFactory.Services;
using Creventive.Wpf.ShellFactory.Workspace;
using MultiMasterView.Infrastructure.Shell;
using MultiMasterView.Modules.Core.Main;
using MultiMasterView.Modules.Core.Main.RuntimeModels;

[assembly: ApplicationViewModel(typeof(MainViewModel), typeof(IMainViewModel))]

namespace MultiMasterView.Modules.Core.Main.RuntimeModels
{
    internal class MainViewModel : ApplicationViewModel, IMainViewModel
    {
        private MasterViewsController controller = new MasterViewsController();

        public MainViewModel(IServiceContainer services)
            : base(services, ApplicationViewModelFlags.None)
        {}

        public IEnumerable<MasterViewSource> MasterViewSources
        {
            get { return this.controller.ViewSources; }
        }
    }
}